home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / Windows / System32 / HTMLRE90.DLL / HTML / 11213 < prev    next >
Encoding:
Text File  |  2002-07-05  |  8.1 KB  |  303 lines

  1. <HTML>
  2.  
  3. <HEAD>
  4.     <LINK REL="stylesheet" TYPE="text/css" HREF="%12css/default.css">
  5. </HEAD>
  6.  
  7. <BODY TOPMARGIN="0" LEFTMARGIN="5" MARGINHEIGHT="0" MARGINWIDTH="5" onload="onDisabledCheck();">
  8.  
  9. <script language="Javascript">
  10. //LOCALIZATION STRINGS
  11. var _errPassword = "The password values entered do not match. Please re-enter the values.";
  12. var alias_message = "If you continue you will lose any unsaved changes";
  13. var _errPasswordSettings = "A user cannot have both 'User must change password at next logon' and 'User cannot change password' checked.";
  14.  
  15. var _strNameAlert = "Please limit the name to 100 characters.";
  16. var _strFullNameAlert = "Please limit the full name to 100 characters.";
  17. var _strDescAlert = "Please limit the description to 256 characters.";
  18. var _strGuestDisableWarning = "Disabling the guest account will cause anonymous access to fail. This could affect applications that rely on this feature. Continue?"
  19. var _strGuestPasswordWarning = "Giving the guest account a password will cause anonymous access to fail. This could affect applications that rely on this feature. Continue?"
  20. </script>
  21.  
  22. <SCRIPT>
  23.  
  24. var alias_count =%11; 
  25. var hasChanged = false; 
  26. var guest_user = %19; 
  27. var start_pass_value = ""; 
  28.  
  29. var link = new Array(); 
  30. %18
  31.  
  32. function onAssignAlias()
  33. {
  34.     if (hasChanged)
  35.     {
  36.         if(!confirm(alias_message))
  37.             return;  
  38.     }
  39.     parent.parent.location = "%8"; 
  40. }
  41.  
  42. function changed()
  43. {
  44.     hasChanged = true; 
  45. }
  46.  
  47. function onMoveAlias(link_index)
  48. {
  49.     if (hasChanged)
  50.     {
  51.         if(!confirm(alias_message))
  52.             return;  
  53.     }
  54.     parent.parent.location = link[link_index]; 
  55. }
  56.  
  57. function onSubmit()
  58. {
  59.     // check for account name, full name and description 
  60.     var strAccountName = document.forms.user_prop.userName.value;
  61.     var strFullName = document.forms.user_prop.userFullName.value;
  62.     var strDesc = document.forms.user_prop.userDesc.value;
  63.     if (strAccountName.length > 100)
  64.     {
  65.        alert(_strNameAlert);
  66.        return;
  67.     }
  68.     if (strFullName.length > 100)
  69.     {
  70.        alert(_strFullNameAlert);
  71.        return;
  72.     }
  73.     if (strDesc.length >= 256)
  74.     {
  75.        alert(_strDescAlert);
  76.        return;
  77.     }
  78.  
  79.     if ((guest_user) && (document.user_prop.userPassword.value != "") && 
  80.         (document.user_prop.userPassword.value != start_pass_value))
  81.     {
  82.         if (!confirm(_strGuestPasswordWarning))
  83.             return; 
  84.     }
  85.     
  86.     // Check for a matching password
  87.     if (document.user_prop.userPassword.value != document.user_prop.userConfirm.value)
  88.     {
  89.             alert(_errPassword);  
  90.             return; 
  91.     }
  92.  
  93.     // Check to see if we have some bad password options
  94.     if ((document.user_prop.uFPC.checked) && (document.user_prop.uCCP.checked))
  95.     {
  96.         alert(_errPasswordSettings); 
  97.         return; 
  98.     }
  99.  
  100.     // Do the disabled aliases
  101.     var items = "";
  102.     var first = true; 
  103.     for(var i = 0; i < alias_count; i++)
  104.     {
  105.         if(!document.user_prop.elements["check"+i].checked)
  106.         {
  107.             if (!first) 
  108.             {
  109.                 items += "+";
  110.             }
  111.             else
  112.             {
  113.                 if ((i == 0) && guest_user)
  114.                 {
  115.                     if (!confirm(_strGuestDisableWarning))
  116.                         return;  
  117.                 }
  118.                 first = false; 
  119.             }
  120.             items += document.user_prop.elements["check"+i].value; 
  121.         }
  122.     }
  123.     document.user_prop.disabled_aliases.value = items; 
  124.  
  125.     // Set up the checkbox values for password rules
  126.     if (document.user_prop.uPNE.checked)
  127.             document.user_prop.userPasswordNeverExpires.value = 1; 
  128.     else document.user_prop.userPasswordNeverExpires.value = 0; 
  129.  
  130.     if (document.user_prop.uFPC.checked)
  131.             document.user_prop.userForcePasswordChange.value = 1; 
  132.     else document.user_prop.userForcePasswordChange.value = 0; 
  133.  
  134.     if (document.user_prop.uCCP.checked)
  135.             document.user_prop.userCannotChangePass.value = 1; 
  136.     else document.user_prop.userCannotChangePass.value = 0; 
  137.     
  138.     // Submit the properies
  139.     document.user_prop.submit();
  140. }
  141.  
  142. function onCancel()
  143. {
  144.     document.user_prop.reset();
  145. }
  146.  
  147. function onDisabledCheck()
  148. {
  149.  
  150.     start_pass_value = document.user_prop.userPassword.value; 
  151.  
  152.     // Check to see if we can enable the account disabled flag
  153.     for(var i = 0; i < alias_count; i++)
  154.     {
  155.         if (document.user_prop.elements["check"+i].checked)
  156.         {
  157.             return; 
  158.         }
  159.     }
  160.  
  161.     // Got to here all aliases are disabled
  162.     document.user_prop.account_disabled.checked = true; 
  163. }
  164.  
  165. function onDisabledClick()
  166. {
  167.     // Determine whether the check box is actually checked
  168.     if (document.user_prop.account_disabled.checked)
  169.         disabled = true; 
  170.     else disabled = false; 
  171.  
  172.     // Run through the list of alias checkboxes
  173.     for(var i = 0; i < alias_count; i++)
  174.     {
  175.         if(document.user_prop.elements["check"+i].checked)
  176.         {
  177.             if (disabled)
  178.             {
  179.                 document.user_prop.elements["check"+i].checked = false; 
  180.             }
  181.         }
  182.         else
  183.         {
  184.             if (!disabled)
  185.             {
  186.                 document.user_prop.elements["check"+i].checked = true; 
  187.             }
  188.         }        
  189.     }
  190.     hasChanged = true; 
  191. }
  192.  
  193. </SCRIPT>
  194.  
  195. <FORM action="%10" method="post" name="user_prop" target="target_frame">
  196.  
  197. <table>
  198.   <tr>
  199.     <td class="list">Account Name:</td>
  200.     <td class="list"><input tabindex=1 name="userName" size=40 onchange="changed()" value="%1"></td>
  201.   </tr>
  202.  
  203.   <tr>
  204.     <td class="list">Full Name:</td>
  205.     <td class="list"><input tabindex=2 name="userFullName" size=40 onchange="changed()" value="%2"></td>
  206.   </tr>
  207.  
  208.   <tr>
  209.     <td class="list">Description:</td>
  210.     <td class="list"><textarea tabindex=3 wrap="virtual" name="userDesc" rows="7" cols="40" onchange="changed()">%3</textarea></td>
  211.   </tr>
  212.  
  213. </table>
  214.  
  215. <BR>
  216. Home Folder: <a class="list" tabindex=4 target="target_frame" href="%16">%17</a>
  217. <BR>
  218. <BR>
  219.  
  220. Enterprise Password Settings:
  221. <table border =1 CELLSPACING="0"><tr><td>
  222. <table CELLSPACING="0" border=0 CELLPADDING="5">
  223. <tr> 
  224.     <td class="list"> Password: </td> <td class="list"><input tabindex=5 type=password name="userPassword" size=20 onchange="changed()" value=%4></td>
  225.     <td class="list"><input type=checkbox tabindex=7 name="uPNE" %5></td><td class="list"> Password never expires </td>
  226. </tr>
  227.  
  228. <tr>
  229.     <td class="list"> Confirm:  </td> <td class="list"><input tabindex=6 type=password name="userConfirm"  size=20 onchange="changed()" value=%6></td>
  230.     <td class="list"><input type=checkbox tabindex=8 name="uFPC" %7></td><td class="list"> User must change password at next logon</td>
  231. </tr>
  232.  
  233. <tr>
  234.     <td class="list" colspan=3 align=right><input tabindex=9 type=checkbox name="uCCP" onclick="changed()" %15></td><td class="list"> User cannot change password </td>
  235. </tr>
  236.  
  237. </td></tr></table>
  238. </table>
  239.  
  240. <BR>
  241.     Connection Type:
  242.     <table CELLSPACING="0" border=0 FRAME=box CELLPADDING="5">
  243.     <tr>
  244.         <td class="list"><input tabindex=10 type=radio name="user_type" value="0" onclick="changed()" %13><td class="list"> Concurrent User </td>
  245.     </tr>
  246.     <tr>
  247.         <td class="list"><input tabindex=11 type=radio name="user_type" value="1" onclick="changed()" %14><td class="list"> Named User </td>
  248.     </tr>
  249.     </table>
  250. <BR>
  251.  
  252. <input type=checkbox tabindex=12 name="account_disabled" onClick="onDisabledClick()"> Account is disabled 
  253.  
  254. <table CELLSPACING="5" width=80%>
  255. <tr> 
  256.     <td class="list" width=40%> Alias: </td> 
  257.     <td class="list" width=30%> Authentication Type: </td>
  258.     <td class="list" width=10% align=right> Enabled: </td>
  259.     <td class="list" width=20% align=right>
  260.     <table cellpadding=0 border=0> 
  261.         <tr>
  262.             <td class="clsButton" align=middle nowrap>
  263.                 <div class="clsButton"><a href="javascript:onAssignAlias()" tabindex=-1>Assign Alias...</a></div>
  264.             </td>
  265.         </tr>
  266.     </table>
  267.     </td>    
  268. </tr>
  269.  
  270. <tr>
  271.     <td colspan = 4>
  272.     <hr size=0>
  273.     </td>
  274. </tr>
  275. %9
  276. </table>
  277.  
  278. <table align=center CELLPADDING="0" border=0 width=20%>
  279. <tr>
  280.     <td><table cellpadding=0 border=0> 
  281.         <tr>
  282.             <td class="clsButton" align=middle nowrap>
  283.                 <div class="clsButton"><a tabindex=13 href="javascript:onSubmit()">Update</a></div>
  284.             </td>
  285.  
  286.             <td class="clsButton" align=middle nowrap>
  287.                 <div class="clsButton"><a tabindex=14 href="javascript:onCancel()">Reset</a></div>  
  288.             </td>
  289.         </tr>
  290.     </table></td>
  291. </tr>    
  292. </table>
  293.  
  294. <input type="hidden" name="disabled_aliases">
  295. <input type="hidden" name="userForcePasswordChange">
  296. <input type="hidden" name="userPasswordNeverExpires">
  297. <input type="hidden" name="userCannotChangePass">
  298.  
  299. </form>
  300.  
  301. </BODY>
  302. </HTML>
  303.